Component({
    properties: {
        item: Object,
        idx: Number
    },
    methods: {
        tap_avatar(event) {
            const userId = event.currentTarget.dataset.user_id;
            // 实现点击头像后的逻辑
            console.log('用户ID:', userId);
        },
        call_mobile(event) {
            const mobile = event.currentTarget.dataset.mobile;
            wx.makePhoneCall({
                phoneNumber: mobile,
            });
        },
        tap_copy_text(event) {
            const text = event.currentTarget.dataset.text;
            wx.setClipboardData({
                data: text,
                success() {
                    wx.showToast({
                        title: '已复制',
                    });
                },
            });
        },
        on_navigate(event) {
            // 实现点击导航按钮的逻辑
        },
        ballPopup(event) {
            // 实现修改店名的逻辑
        },
        orders_of_customer(event) {
            // 实现查看客户订单的逻辑
        }
    }
});
